class CreateCtPhongs < ActiveRecord::Migration
  def up
    create_table :ct_phongs do |t|
      t.references  :Phong
      t.references  :TaiSan
      t.datetime    :NgayCapNhat
      t.integer     :SoLuong
      t.string      :TinhTrang # Tốt, Đang sửa, Thanh lí
      t.date        :NamSD
      t.references  :NhanVien
    end
  end

  def down
    drop_table :ct_phongs
  end
end
